﻿@{
	ViewBag.Title = "用户登录 | " + ViewBag.Title;
	Layout = "~/Views/Shared/_Layout.cshtml";
}

@section Css{
<link href="@Url.Content("~/Content/login.css")" rel="stylesheet" type="text/css" />
}

<form id="login-form" class="login-form" action="@Url.Content("~/User/Login")" method="post">
	<fieldset>
		<legend>用户登录</legend>
		<p><label for="userName">用户名</label></p>
		<p><input id="userName" name="userName" type="text" size="25" /></p>
		<p><label for="password">密　码</label></p>
		<p>
			<input id="password" name="password" type="password" size="25" />
			<label><input type="checkbox" name="isRemember" value="true" /> <span class="label-text">记住密码</span></label>
		</p>
		<p><label for="captcha">验证码</label></p>
		<p>
			<input id="captcha" name="captcha" type="text" size="4" maxlength="6" autocomplete="off" />
			<span id="captcha-img" class="captcha-img" data-src="@Url.Content("~/GetCaptcha.ashx")" data-bgcolor="255,255,255" data-formname="login"></span>
			<input type="submit" value="登 录" />
		</p>
@if (!String.IsNullOrEmpty(ViewBag.Redirect))
{
		<input type="hidden" name="redirect" value="@ViewBag.Redirect" />
}
	</fieldset>
</form>

@section Script{
<script>require('/page/user/login/1.x/');</script>
}